<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path= request.getContextPath();
	System.out.print(path);
	String basePath = request.getScheme() + "://"    + request.getServerName() + ":" + request.getServerPort()    + path + "/";
%>
<html>
<head>
<meta charset="utf-8">
<title>鄞州区经济地图</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="./css/css20121027.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/pages/public/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/pages/public/easyui/themes/icon.css">
<script type="text/javascript" src="<%=path %>/pages/public/easyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/pages/public/easyui/jquery.easyui.min.js"></script>
<style type="text/css">
.f-wrapl{border-bottom:dotted 1px;font-size:14px;padding:5px 0 0 3px;line-height:47px}
.send_button{background-image:url(./image/send_button.png);width:125px;height:24px;float:right;margin-top:20px;}
.foot{height:25px;width:100%;background-color:#DEEEF8;text-align:center;line-height:25px;}
</style>
<script type="text/javascript">
function openWin(){
	$('#report_win').window('open');
}
</script>
</head>
<body>
<div class="app-main">
  <div class="app-header"></div>
  <div class="app-content">
    <div class="app-ltree">
      <h2><img src="./image/app_sys_lc_title.png"></h2>
      <ul class="ltree-wrap">
        <li><a href="#">企业总量</a></li>
        <li><a href="#">企业经济总量</a></li>
        <li><a href="#">企业分布情况</a></li>
        <li><a href="#">企业汇总信息</a></li>
      </ul>
    </div>
    <div class="app-output">
        <div class="app-location"><span class="bg-dec"></span>您的位置：企业查询 &nbsp;&nbsp;<a href="javascript:histroy.go(-1);">返回上一级</a>
        <s:a namespace="/pages/public" action="" method="form">返回搜索主页</s:a>
        <s:a namespace="/pages/public" action="" method="form">地图</s:a>
        </div>
        <div class="f-wrap">
        <!--<s:property value="#request.company.id"/>-->
        <div class="f-wrapl">
        	<strong>企业名称</strong>：<s:property value="#request.company.name"/></div>
		<div class="f-wrapl">
        	<strong>企业地址</strong>：<s:property value="#request.company.address"/></div>
        <div class="f-wrapl">
        	<strong>所属乡镇</strong>：<s:property value="#request.company.area"/></div>
		<div class="f-wrapl">
			<strong>注册资金</strong>：<s:property value="#request.company.registered_fund"/>元
			<s:property value="#request.company.currency"/>
		</div>
		<div class="f-wrapl">
			 <strong>法人代表</strong>：<s:property value="#request.company.law_person"/>
		</div>
		<div class="f-wrapl">
			<strong>行业类型</strong>：<s:property value="#request.company.business_type"/>
		</div>
		<div class="f-wrapl">
			<strong>公交路线</strong>：<s:property value="#requset.company.bus_way"/>
		</div>
		<div class="f-wrapl">
			<strong>网页路径</strong>：<s:property value="#requset.company.web_way"/>
		</div>
		<s:a href="javascript:void(0);" onClick="openWin()"><div class="send_button"></div></s:a>
        </div>
        
        
        
    </div>
  </div>
  <div class="foot">宁波市鄞州区经济和信息化局</div>
</div>
<div id="report_win"  class="easyui-window" data-options="title:'数据上报',iconCls:'icon-save',closed:true,collapsible:true" style="width:500px;height:200px;padding:5px;  ">
<form id="reportForm">
<strong>企业名称</strong>：<s:property value="#request.company.name"/>
<input type="hidden" id="name" name="name" value="<s:property value="#request.company.name"/>"></input>
<br>
<div style="float:left"><strong>上报内容</strong>：</div><div><s:textarea name="value" rows="4" cols="25"></s:textarea></div><div style="clear:both"></div>
<a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'">上报</a>
</form>
</div>
<script type="text/javascript">
$(document).ready(function(){
  $(".f-info tr:odd").css("background","#ffffff");
  
  //alert($("#name").val())
  $("#btn").click(function(){
	 var datas = $("#reportForm").serialize();
	 $.ajax({
		 type:"POST",
		 url:"<%=path%>/pages/public/Report!insert.do",
		 data:datas,
		 success:function(){
			 $('#report_win').window('close');
			 alert("上报成功");
		 }
	 }); 
  });
});
</script>
</body>
</html>